import request from '@/utils/request'

// 查询华为云拨款列表
export function listAllotRecord(query) {
  return request({
    url: '/Allot/AllotRecord/list',
    method: 'get',
    params: query
  })
}

// 查询华为云拨款列表
export function listAllotSum(query) {
  return request({
    url: '/Allot/AllotRecord/listsum',
    method: 'get',
    params: query
  })
}

// 查询华为云拨款详细
export function getAllotRecord(allotId) {
  return request({
    url: '/Allot/AllotRecord/' + allotId,
    method: 'get'
  })
}

// 新增华为云拨款
export function addAllotRecord(data) {
  return request({
    url: '/Allot/AllotRecord',
    method: 'post',
    data: data
  })
}

// 修改华为云拨款
export function updateAllotRecord(data) {
  return request({
    url: '/Allot/AllotRecord',
    method: 'put',
    data: data
  })
}

// 删除华为云拨款
export function delAllotRecord(allotId) {
  return request({
    url: '/Allot/AllotRecord/' + allotId,
    method: 'delete'
  })
}

export function getbkcheckedlist(query) {
  return request({
    url: '/system/wecom/getbkcheckedlist',
    method: 'get',
  })
}
